// TOWN SCRIPT
//    Town 12: Tangramayne Mine
//      - connected to t10 Mine Tunnels

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documentation. States you write
// yourself should be numbered from 10-100.

// flags:
// 12, 0 = entry message flag

begintownscript;

variables;

short choice;

body;

beginstate INIT_STATE;
	turn_off_training(TRUE);
	set_crime_tolerance(1);
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (get_flag(12, 0) == FALSE) {
		set_flag(12, 0, TRUE);
		reset_dialog();
		add_dialog_str(0, "With The Wilderness in turmoil, the miners have abandoned the Tangramayne mine.", 0);
		add_dialog_str(1, "The mine now sits empty and dark, waiting for the miners return.", 0);
		add_dialog_str(2, "One day...", 0);
		add_dialog_choice(0, "Ok");
		choice = run_dialog(TRUE);
	}
break;

beginstate 10;
	run_scenario_script(11);
break;

beginstate 11;
	block_entry(TRUE);
	move_to_new_town(10, 4, 5);
break;
